Method for reducing radio ranging errors due to clock frequency offsets

ABSTRACT

A method reduces errors in two-way ranging between transceivers due to a frequency offset. A first transceiver measures a time C A1  between, transmitting a request frame and receiving a reply frame, and a time C A2  between receiving a first information bit of the reply frame and receiving a last information bit of the reply frame. A second transceiver measures a time C B2  between receiving the request frame and transmitting the last information bit of the reply frame, and a time C B1  between receiving a first information bit of the request frame and a last information bit of the request frame. A correction factor 
     
       
         
           
             
               α 
               C 
             
             = 
             
               
                 
                   C 
                   
                     B 
                      
                     
                         
                     
                      
                     1 
                   
                 
                 
                   C 
                   
                     A 
                      
                     
                         
                     
                      
                     2 
                   
                 
               
             
           
         
       
     
     is applied according to 
     
       
         
           
             
               
                 
                   C 
                   ^ 
                 
                 
                   B 
                    
                   
                       
                   
                    
                   2 
                 
               
               = 
               
                 
                   C 
                   
                     B 
                      
                     
                         
                     
                      
                     2 
                   
                 
                 
                   α 
                   o 
                 
               
             
             , 
           
         
       
     
     and the one-way time is 
     
       
         
           
             
               
                 
                   T 
                   ^ 
                 
                 i 
               
               = 
               
                 
                   
                     
                       C 
                       
                         A 
                          
                         
                             
                         
                          
                         1 
                       
                     
                     - 
                     
                       
                         C 
                         ^ 
                       
                       
                         B 
                          
                         
                             
                         
                          
                         2 
                       
                     
                   
                   2 
                 
                  
                 
                   T 
                   i 
                 
               
             
             , 
           
         
       
     
     where T i  is an idea period of the clocks of the transceivers.

FIELD OF THE INVENTION

The present invention relates generally to radio communication systems,and more particularly to determining distances between transceiversusing two-way ranging, which is known as radio ranging.

BACKGROUND OF THE INVENTION

As shown in FIG. 1, a conventional communication frame 100 for awireless network: includes as fields: a preamble 110, a start of framedelimiter (SFD) 120, a physical layer header (PHR) 130, and a physicallayer sevice data unit (PSDU) 140.

The PSDU typically includes a payload, see IEEE 802.15.4a-D7 standard,November 2006, incorporated by reference. The preamble 110 can be usedfor acquisition and ranging. The SFD 120 is used for framesynchronization. The detection of the SFD indicates the beginning of thePHR 130 and the PSDU 140. The frame 100 has a time duration of T₁ 160,and a time duration of the PHR and PSDU is T₂ 150.

FIG. 2 shows a conventional ranging method. To estimate a distancebetween a first transceiver A 210 and a second transceiver B 220 in awireless communications network, the first transceiver A 210 transmits201 a request frame to the second transceiver B 220. FIG. 2 also shows atime axis 240 for the transceiver A and a time axis 250 for thetransceiver B 220. The transceiver A 210 records a time t₁ that therequest frame was transmitted according to a clock of the transceiver A210. Upon receiving the request frame, the transceiver B 220 transmits202 a reply frame to the transceiver A 210. The transceiver A 210measures the time of arrival (TOA) t₂ of the reply frame according toits clock.

A delay at the transceiver B 220 between receiving the request frame andtransmitting the reply frame is T_(ta) ^(B) 250. The transceiver B 220transmits 205 the delay 250 to the transceiver A 210 in a timestampreport. An estimate of the distance D between the transceiver A 210 andthe transceiver B 220 is the time for the round trip T_(round) ^(A) 270minus the delay at the transceiver B 220 divided by two and multipliedby the speed of light.

$\begin{matrix}{D = {{\frac{( {t_{2} - t_{1}} )}{2}c} = {\frac{( {T_{round}^{A} - T_{t\; \alpha}^{B}} )}{2}{c.}}}} & (1)\end{matrix}$

A corresponding one-way flight time T_(t) 260 is

$\begin{matrix}{T_{t} = {\frac{( {T_{round}^{A} - T_{ta}^{B}} )}{2}.}} & (2)\end{matrix}$

The conventional method as specified in method in the IEEE 802.15.4aStandard Draft 7 does not address errors due to a frequency offsetbetween the clocks of the transceivers. Indeed, in practicalapplications, the measurements of T_(round) ^(A) and T_(ta) ^(B) aredifferent from their true value due to the frequency offset. The clocktolerance of the transceiver A 210 is e_(A), and the clock tolerance ofthe transceiver B 220 as e_(B).

After factoring in the clock tolerances, the one-way time of flightestimate {acute over (T)}_(t) becomes

$\begin{matrix}{{\hat{T}}_{t} = {\frac{{T_{round}^{A}( {1 + e_{A}} )} - {T_{ab}^{B}( {1 + e_{B}} )}}{2}.}} & (3)\end{matrix}$

A residual error e_(tw) is a difference between the time of flightestimate with ideal clocks and with clocks with tolerances e_(A) ande_(B). Then.

e _(tw) =T _(t) e _(A) +T _(ta) ^(B)(e _(A) +e _(B)).  (4)

Generally, T_(ta) ^(B)>>T_(t). Therefore, Equation (4) approximates to

e _(tw) ≈T _(ta) ^(B)(e _(A) +e _(B)).  (5)

It is desired to reduce the residual error e_(tw). Therefore, amechanism is needed to reduce the effect: of clock frequency offset onthe range error.

SUMMARY OF THE INVENTION

The invention provides a method for reducing ranging errors due to aclock frequency offset in two-way ranging between radio transceivers,which minimizes impacts of clock frequency offsets on range estimationbetween two devices using two-way time of arrival measurements.

A first transceiver measures a time C_(A1) between transmitting arequest frame and receiving a reply frame, and a time C_(A2) betweenreceiving a first information bit of the reply frame and receiving alast information bit of the reply frame.

A second transceiver measures a time C_(B2) between receiving therequest frame and transmitting the last information bit of the replyframe, and a time C_(B1) between receiving a first information bit: ofthe request frame and a last information bit of the request frame.

A correction factor

$\alpha_{c} = \sqrt{\frac{C_{B\; 1}}{C_{A\; 2}}}$

is applied according to

${{\hat{C}}_{B\; 2} = \frac{C_{B\; 2}}{\alpha_{a}}},$

and the one-way time of flight is

${{\hat{T}}_{t} = {\frac{C_{A\; 1} - {\hat{C}}_{B\; 2}}{2}T_{i}}},$

where T_(i) is an ideal period of the clocks of the transceivers.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 is a block diagram of a conventional frame used in wirelesscommunications between transceivers;

FIG. 2 is a timing diagram, of a conventional two-way time of arrivalbased ranging method;

FIG. 3 is a block diagram of a structure of a request frame 300according to an embodiment of the invention;

FIG. 4 is a block diagram of a structure of a reply frame 400 accordingto an embodiment of the invention;

FIG. 5 is a block diagram of a two-way ranging method according to artembodiment of the invention;

FIG. 6 is a block diagram of an operation of timing counters attransceivers according to an embodiment of the invention; and

FIG. 7 is a flow diagram of the method according to an embodiment of theinvention.

DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENT

The embodiments of my invention provide two-way ranging methods forestimating a distance between a first transceiver A and a secondtransceiver B in a wireless communications network. The method reduceserrors due to frequency offsets in clocks of the transceivers.

As shown in FIG. 3, a request frame 300 includes as fields: a preamble301, a start of frame delimiter (SFD) 302, a physical layer header (PHR)303, and request physical layer service data unit (PSDU_(request)) 304.The PHR 303 and PSDU_(request) 304 can carry data or information bits ofthe request frame 300. A time duration of the data, or information bitfields 303 and 304 is denoted by T_(frame1) 350.

As shown in FIG. 4, a reply frame 400 includes the preamble 303, thestart of frame delimiter (SFD) 302, a physical layer header (PHR) 403and a reply physical layer service data unit (PSDU_(reply)) 404. A timeduration of the data or information bit fields 403 and 404 of the replyframe is T_(frame2) 450. The time durations T_(frame1) 350 andT_(frame2) 450 for the information bits can be different. However, forsimplicity of this description, the duration for both T_(frame1) 350 andT_(frame2) 450 can be generally denoted by T_(frame).

FIG. 5 shows a timing diagram of a ranging method according to anembodiment of the invention. The block diagram of the method is shown inFIG. 6. FIG. 7 shows the method steps. The transceiver A 510 includes atransmit clock 511, and the transceiver B 520 includes a receive clock B512.

An ideal clock period (cycle) is T_(i). The clock period is determinedby a frequency of a crystal of the clock. The ideal clock frequency isspecified by the manufacturer. In real systems, however, the clockfrequency can be offset from the ideal frequency due to, e.g.,manufacturing inconsistencies or environmental conditions. Therefore,the actual clock period of the transceiver A 510 is T_(a), and theactual clock period of the transceiver B 520 is T_(b). It is desired tominimize errors due to this frequency offset.

As shown in FIG. 6, a transceiver A 510 transmits the request frame, seeinset 300 for start and end of frame fields, to a transceiver B 520.Transceiver A 510 starts 740 a first transmit counter A₁ when the SFD302 of the request frame 300 is emitted by an antenna 700 of the firsttransceiver.

The request frame is received in the second transceiver B 520.Transceiver B 520 starts 770 first and second receive counters B₁ and B₂when detecting the end of the SFD 302 of the request frame 300 at theantenna 720 of the second transceiver B 520.

Tranceiver B 520 stops 730 its first receive counter B₁ when receiving alast information bit: of the request frame 300, which is at the end ofthe request PSDU 304.

Transceiver B 520 determines a difference between the start and stopvalues of the first receive counter B₁ The first: receive counter B₁measures a duration C_(B1) 703 where

$\begin{matrix}{{C_{B\; 1} = {\frac{T_{frame}}{T_{i}}\frac{T_{a}}{T_{b}}}},} & (6)\end{matrix}$

The transceiver B 520 prepares the reply frame 400 and transmits thereply frame to transceiver A 510.

Transceiver B 520 stops 760 the second receive counter B₂ when the endof the SFD 302 of the reply frame 400 is emitted by its antenna 720. Thedifference between the start and stop values of the second receivecounter B₂ is denoted as C_(B2) 704, and it measures a turn around time

$\begin{matrix}{{C_{B\; 2} = \frac{T_{ta}^{B}}{T_{b}}},} & (7)\end{matrix}$

where T_(ta) ^(B) is the true turn around time according to the idealclock period.

In step 750, transceiver A 510 stops its first transmit counter A₁ andstarts a second transmit counter A₂ when it detects the end of the SFD302 of the received reply frame 400.

A difference C_(A1) 701 between the start and stop values of the firstreceive counter A₁ corresponds to

$\begin{matrix}{{C_{A\; 1} = \frac{{2T_{t}} + T_{ta}^{B}}{T_{a}}},} & (8)\end{matrix}$

where T₁ is the one-way flight time of the frame from transceiver A 510to transceiver B 520.

Transceiver A 510 stops 780 the second transmit counter A₂ when itreceives the last bit of the PSDU_(reply) 404 of the received replyframe 400 at the antenna 700. The difference between the start and stopvalues of the second transmit clock A₂ is denoted as C_(A1) 702 and itmeasures the time

$\begin{matrix}{C_{A\; 2} = {\frac{T_{{frame}\; 2}}{T_{i}}\frac{T_{b}}{T_{a}}}} & (9)\end{matrix}$

Transceiver B 520 transmits the counter values C_(B1) 703 and C_(B2) 704to transceiver A 510 in a timestamp report 500.

Transceiver A 510 determines a correction factor

$\alpha_{a} = {\frac{T_{a}}{T_{b}}\mspace{14mu} 705}$

as a square root of the ratio of C_(B1) and C_(A2). It can be seen afterdividing the expression in Equation (6) by the expression in Equation(9) that

$\lbrack \frac{T_{a}}{T_{b}} \rbrack^{2} = {\frac{C_{B\; 1}}{C_{A\; 2}}.}$

Transceiver A 510 divides C_(B2) 704 by the correction factor α_(c) 705to obtain an estimate Ć_(B2) 707.

The time of flight estimate {acute over (T)}_(t) 708 is determined bythe transceiver A 510 as

$\begin{matrix}{{\hat{T}}_{i} = {\frac{C_{A\; 1} - {\hat{C}}_{B\; 2}}{2}T_{i}}} & (10)\end{matrix}$

Note that the ideal time period T_(i) 706 is known to both transceivers,e.g., it is the time specified by the manufacturer.

Ranging Example

A ranging system has the following example values;

T_(frame)=100μs;

-   -   ideal clock frequency is 500 MHz, i.e., the ideal period T_(i)−        1/500 MHz;    -   clock: frequency of transceiver A 530 is 495 MHz, that is,        T_(a)− 1/495 MHz;    -   clock frequency of transceiver B 520 is 495 MHz, i.e., T_(b)=        1/495 MHz:

distance between transceivers A and B is 10 m, i.e.,

-   -   true one way time of flight is T_(t)=30 ns; and    -   true turn around time is T_(ta) ^(B)=1 ms.

After transmission of the request and reply frames, the correspondingexample counter values are:

-   -   C_(B1)=51.515 clock periods according the transceiver B clock;    -   C_(A2)=48529 clock periods according to transceiver A clock;

${\alpha_{c} = {\sqrt{\frac{C_{B\; 1}}{C_{A\; 2}}} = 1.0303}};$

-   -   C_(B2)=510,000 clock periods according to transceiver B clock;    -   C_(A1)=495,030 clock periods according to transceiver A clock;    -   Ć_(B2)/α_(c)=495,000; and

${\hat{T}}_{t} = {{\frac{C_{A\; 1} - {\hat{C}}_{B\; 2}}{2}T_{i}} = {30\mspace{11mu} {{ns}.}}}$

This is equal to the true time of flight for a 10 meter separationbetween the transceivers A and B.

Method Overview

As shown in FIG. 7, the embodiments of the invention provide a methodfor reducing ranging errors due to the effect of clock frequency offsetsbetween clocks of two transceivers. In practice, a transceiver clockfrequency can differ from its ideal clock frequency as specified by themanufacturer due to any of a number of conditions, including but: notlimited to uncontrollable fabrication processes and environmentalconditions, if two transceivers 510 and 520 are performing ranging, thetransceivers can have different clock periods or frequencies.

For example, a one nanosecond timing error causes a 30 cm range error.Therefore, an accurate measurement of time is important for precisionranging in the order of centimeters.

According to the embodiments of the invention, if the rangingtransceivers know their relative clock: frequency offset, the frequencyoffset related range error can be reduced. To achieve this, eachtransceiver uses two counters or two instants of a single counter tomeasure various time periods as described below and shown in theFigures.

The first transceiver 510 measures the number of clock cycles orperiods, that is, timing information C_(A1) 701, between thetransmission of the request frame 300 and the reception of the replyframe 400.

The first transceiver 510 also measures the number of clock cyclesbetween the reception of the first data or information bit of the replyframe, i.e., the beginning of PHY header, and the last information bitof the reply frame, i.e., at the end of data pay load of thePSDU_(reply). This counter value is denoted as C_(A2) 702.

The responding second transceiver 520 measures the number of clockcycles between the reception of the request frame and the completion oftransmission of the reply frame. This counter value is denoted as C_(B2)704.

The second transceiver 520 also measures the number of cycles betweenthe reception of the first information bit of the request frame, i.e.,the beginning of PHY header, and the last information bit of the requestframe, i.e., the end of the data payload of the PSDU_(request). Thiscounter value is denoted as C_(B1) 703.

The second transceiver 520 transmits C_(B1) and C_(B2) to the firsttransceiver 510.

The first transceiver 510 determines the correction factor 705 as

$\alpha_{c} = {\sqrt{\frac{C_{B\; 1}}{C_{A\; 2}}}.}$

Then, the first receiver 510 applies the correction factor to C_(B2) toobtain a best estimate 707

${\hat{C}}_{B\; 2} = {\frac{C_{B\; 2}}{\alpha_{c}}.}$

Then, the first transceiver can determine the one-way time of flight 708as

${\hat{T}}_{i} = {\frac{C_{A\; 1} - {\hat{C}}_{B\; 2}}{2}{T_{i}.}}$

This time of flight corresponds to the range or distance between the twotransceivers.

It should be noted that the first transceiver could transmit: its timinginformation to the second receiver, in which the second transceiver canperform the ranging.

Although the invention has been described by way of examples ofpreferred embodiments, it is to be understood that various otheradaptations and modifications can be made within the spirit and scope ofthe invention. Therefore, it is the object of the appended claims tocover all such variations and modifications as come within the truespirit and scope of the invention.

1. A method for reducing errors in two-way ranging between twotransceivers due to a clock frequency offset, comprising: measuring, ina first transceiver, a time C_(A1) between transmitting a request frameand receiving a reply frame, and a time C_(A2) between receiving a firstinformation bit of the reply frame and receiving a last information bitof the reply frame; measuring, in a second transceiver, a time C_(B2)between receiving the request frame and transmitting the lastinformation bit of the reply frame, and a time C_(B1) between receivinga first information bit of the request frame and a last information bitof the request frame; applying a correction factor$\alpha_{c} = \sqrt{\frac{C_{B\; 1}}{C_{A\; 2}}}$ to the time C_(B2)to obtain an estimated time${{\hat{C}}_{B\; 2} = \frac{C_{B\; 2}}{\alpha_{c}}};{and}$determining a one-way time of flight according to${{\hat{T}}_{i} = {\frac{C_{A\; 1} - {\hat{C}}_{B\; 2}}{2}T_{i}}},$in which T_(i) is an ideal period of the clocks of the first and secondtransceiver and the one-way time of flight corresponds to a rangebetween the two transceivers.
 2. The method of claim 1, in which therequest frame includes a preamble, a start of frame delimiter (SFD), aphysical layer header (PHR), and a request physical layer service dataunit (PSDU_(request)), and in which a duration of the SFD and thePSDU_(request) is T_(frame1), and the reply frame includes the preamble,the start of frame delimiter (SFD), the physical layer header (PHR), anda reply physical layer service data unit (PSDU_(reply)), and in which aduration of the SFD and the PSDU_(reply) is T_(frame2).
 3. The method ofclaim 1, in which the ideal time period T_(i) is known to the first andsecond transceivers.
 4. The method of claim 2, in which the durationsT_(frame1) and T_(frame2) are different.
 5. The method of claim 1, inwhich the clocks of the first and second transceivers have a frequencyoffset.
 6. The method of claim 2, in which the PHR and PSDU carryinformation bits.
 7. The method of claim 2, in which${C_{B\; 1} = {\frac{T_{frame}}{T_{i}}\frac{T_{a}}{T_{b}}}},$ and inwhich T_(a) and T_(b) are actual periods of the clocks of the first andsecond transceiver respectively.
 8. The method of claim 7, in which${C_{B\; 2} = \frac{T_{ta}^{B}}{T_{b}}},$ where T_(ta) ^(B) is a trueturn around time according to the ideal clock period.
 9. The method ofclaim 7, ${C_{A\; 1} = \frac{{2T_{i}} + T_{ta}^{B}}{T_{a}}},$ whereT_(t) is the one-way time of flight.
 10. The method of claim 7, in which$C_{A\; 2} = {\frac{T_{{frame}\; 2}}{T_{i}}{\frac{T_{b}}{T_{a}}.}}$11. The method of claim 1, further comprising: transmitting C_(B1) andC_(B2) to the first transceiver in a timestamp report.
 12. (canceled)13. The method of claim 1, further comprising: transmitting the requestframe from the first transceiver to a second transceiver, in which therequest frame includes a preamble, a start of frame delimiter (SFD), aphysical layer header (PHR), and request physical layer service dataunit (PSDU_(request)), and in which a duration of the SFD and thePSDU_(request) is T_(frame1); starting a first transmit counter A₁ ofthe first transceiver when the SFD of the request frame is emitted by anantenna of the first transceiver, in which periods of the first transmitcounter is determined according to a transmit clock having a periodT_(a); starting a first receive counter B₁ and a second receive counterB₂ of the second transceiver when detecting an end of the SFD of therequest frame at an antenna of the second transceiver, in which periodsof the first and second receive counters are determined according to atransmit clock having a period T_(b); stopping the first receive counterB₁ when receiving a last bit of the request frame; determining adifference between the start and stop values of the first receivecounter B₁; measuring a duration${C_{B\; 1} = {\frac{T_{frame}}{T_{i}}\frac{T_{a}}{T_{b}}}},$ inwhich T_(i) is an ideal clock period; transmitting, in response toreceiving the request frame, the reply frame from the second transceiverto the first transceiver, in which the reply frame include the preamble,the start of frame delimiter (SFD), the physical layer header (PHR), anda reply physical layer service data unit (PSDU_(reply)), and in which aduration of the SFD and the PSDU_(reply) is T_(frame2); stopping thesecond receive counter B₂ when an end of the SFD of the reply frame isemitted by the antenna of the second transceiver; measuring a duration${C_{B\; 2} = \frac{T_{ta}^{B}}{T_{b}}},$ where T_(ta) ^(B) is a trueturn around time according to the ideal clock period T_(t); starting asecond transmit counter A₂ when the first transceiver detects an end ofthe SFD of the reply frame, and stopping the first transmit counter A₁;measuring a difference between the start and stop values of the firstreceive counter A₁ correspond to${C_{A\; 1} = \frac{{2T_{i}} + T_{ta}^{B}}{T_{a}}},$ where T_(t) is aone-way flight time of the frame from the first transceiver to thesecond; stopping the second transmit counter A₂ when a last bit of thePSDU_(reply) of the received reply frame at the antenna of the firsttransceiver; measuring${C_{A\; 2} = {\frac{T_{{frame}\; 2}}{T_{i}}\frac{T_{b}}{T_{a}}}};$transmitting the first and second receive values C_(B1) and C_(B2) tothe first transceiver; determining in the first transceiver a correctionfactor $\alpha_{c} = \frac{T_{a}}{T_{b}}$ as a square root of the ratioof C_(B1) and C_(A2); dividing C_(B2) by the correction factor α_(c) toobtain an estimate Ć_(B2); and estimating a time of flight estimate{acute over (T)}_(t) in the first transceiver as${\hat{T}}_{i} = {\frac{C_{A\; 1} - {\hat{C}}_{B\; 2}}{2}T_{i}}$